package com.mingserve.raw.event;

import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * 传感器数据包
 */
@Data
public class RawEvent implements Serializable
{
    /**
     * 数据类型
     */
    private String dataType;
    /**
     * 数据来源
     */
    private String source;
    /**
     * json数据包
     */
    private Map<String, Object> map;
    /**
     * zlib压缩字节流
     */
    private byte[] bytes;

    public RawEvent(String dataType, String source, Map<String, Object> map, byte[] bytes)
    {
        this.dataType = dataType;
        this.source = source;
        this.map = map;
        this.bytes = bytes;
    }
}
